package com.licw.mapper;

import com.licw.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /**
     * 批量插入口味数据
     */
    void insertByBatch(List<DishFlavor> flavors);

    /**
     * 根据多个菜品id删除口味数据
     */
    void deleteByDishIds(List<Long> dishIds);

    /**
     * 根据菜品id删除口味数据
     */
    void deleteByDishId(Long id);

    /**
     * 根据菜品id查询对于的口味
     */
    List<DishFlavor> selectByDishId(Long dishId);

    List<DishFlavor> listByDishId(Long dishId);
}